import React from 'react';
import logo from './logo.svg';
import './App.css';

import HelloWorld from './components/HelloWorld';
import HelloWorld2 from './components/HelloWorld2';
import HelloWorld3 from './components/HelloWorld3';
import HelloWorldHOC from './components/HelloWorldHOC';
import HelloWorldHooks from './components/HelloWorldHooks';

function App() {
  return (
    <div className="App">
      <header className="App-header">
        <img src={logo} className="App-logo" alt="logo"/>
        <p>
          Edit <code>src/App.tsx</code> and save to reload.
        </p>
        <a
          className="App-link"
          href="https://reactjs.org"
          target="_blank"
          rel="noopener noreferrer"
        >
          Learn React
        </a>
        <HelloWorld name="Hello Typescript!"/>
        <HelloWorld2 name="zjt"/>
        <HelloWorld3 name="taoge"/>
        <HelloWorldHOC name="HOC" loading={false}/>
        <HelloWorldHooks name="Hooks"/>
      </header>
    </div>
  );
}

export default App;
